package com.example.jpetstoreclient.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.jpetstoreclient.common.CommonResponse;
import com.example.jpetstoreclient.domain.Address;

import java.util.List;

public interface AddressService extends IService<Address> {

    //添加地址
    CommonResponse<Address> addAddress(int user_id, String address_content);

    //删除地址
    CommonResponse<Address> deleteAddress(int address_id);

    //修改地址
    CommonResponse<Address> updateAddress(Address address);

    //获取一个用户所有地址
    CommonResponse<List<Address>> getAllAddresses(int user_id);

}
